package com.depth.viewer.loader
{
	/**
	 *@Author JueYue
	 * 加载路径,在浏览器下面填写的url不识别前缀的问题
	 *@date Nov 5, 2013 3:11:00 PM
	 **/
	public class LoadUrlSystem
	{
		public function LoadUrlSystem()
		{
		}
		
		private static var _instacne:LoadUrlSystem;
		
		public static function get instance():LoadUrlSystem{
			if(_instacne == null){
				_instacne = new LoadUrlSystem();
			}
			return _instacne;
		}
		
		private var _rootPackage:String = "";
		
		public function getURL(url:String):String{
			if(url!=null&&url.indexOf(_rootPackage)==-1){
				return _rootPackage+url;
			}
			return url;
		}

		public function get rootPackage():String
		{
			return _rootPackage;
		}

		public function set rootPackage(value:String):void
		{
			_rootPackage = value;
		}

	}
}